import { request } from "./rquest";

export function getCateData() {
    return request({
        url: '/api/index',
        method: 'get',
        params: {

        }
    });
}

//获取排序的商品数据
export function getOrder(order = 'sales', cid = 1, page = 1) {
    return request({
        url: '/api/index?category_id=' + cid + '&page=' + page + '&' + order + '=1',
    })

}
